﻿using ctolua.Models.Enum;

namespace ctolua.Models.UI.control
{
    public class MCBuffList : Mui
    {
        public override EUi type { get => EUi.ScrollView; set => base.type = EUi.ScrollView; }

        private Unit? _u;
        /// <summary>
        /// 绑定单位到魔法效果显示栏组件
        /// </summary>
        public Unit? u
        {
            get => _u;
            set
            {
                if (value != null)
                {
                    game_api.set_buff_on_ui_comp(this.role, value, this.id);
                }

                _u = value;
            }
        }
        public MCBuffList()
        {
        }

        public MCBuffList(string id) : base(id)
        {

        }

        public MCBuffList(Mui u) : base(u)
        {

        }


    }
}
